package com.ymatou.iapi.im.parameter.emu;

public enum MessageReadStatus {
    /// <summary>
    /// 所有状态
    /// </summary>
    All(-1),
    /// <summary>
    /// 未读
    /// </summary>
    UnRead(0),
    /// <summary>
    /// 已读
    /// </summary>
    Read(1);

    private int value = 0;

    MessageReadStatus(int value) {
        this.value = value;
    }

    public int value() {
        return this.value;
    }

    public static MessageReadStatus fromValue(int value) {
        for (MessageReadStatus type : MessageReadStatus.values()) {
            if (type.value() == value) {
                return type;
            }
        }
        return null;
    }
}
